<?php


namespace App\Models\CarModels;


use App\Models\Landscaping\Landscaping;
use App\Models\SystemManagement\Department;
use App\Models\SystemManagement\Organization;
use Illuminate\Database\Eloquent\Model;

class GreenStaff extends Model
{
    protected $table = 'green_staff';
    protected $fillable = ['id','landscaping_id','department_id'];
    function landscaping()  //园林
    {
        return $this->hasMany(Landscaping::class,'id','landscaping_id')->with('parkProtect');
    }
    function department()  //人员组
    {
        return $this->hasMany(Department::class,'id','department_id')->with('users');
    }
}